package com.controladores.controlvehicular;

import android.os.Bundle;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Typeface;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class InformacionVehiculo extends Activity {
	protected TextView fuenteInfVehiculo;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_informacion_vehiculo);
		fuenteInfVehiculo= (TextView)findViewById(R.id.tInfVehiculo);
		Typeface tipofuenteInfVehiculo = Typeface.createFromAsset(getAssets(),"inkedgod.ttf");
		fuenteInfVehiculo.setTypeface(tipofuenteInfVehiculo);
		Button btnAceptar = (Button)findViewById(R.id.btnAceptarInfVe);
		btnAceptar.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				AlertDialog selecRegistro = new AlertDialog.Builder(InformacionVehiculo.this).create();
				selecRegistro.setTitle("Opciones");
				selecRegistro.setMessage("Escoja una de las opciones");
				selecRegistro.setButton("Registro Tarjeta", new DialogInterface.OnClickListener() {
					
					@Override
					public void onClick(DialogInterface arg0, int arg1) {
						// TODO Auto-generated method stub
						Intent aRegistroTarjeta = new Intent(InformacionVehiculo.this,RegistroTarjeta.class);
						startActivity(aRegistroTarjeta);
					}
					
				});

				selecRegistro.setButton2("Registro Recarga", new DialogInterface.OnClickListener() {
					
					@Override
					public void onClick(DialogInterface arg0, int arg1) {
						// TODO Auto-generated method stub
						Intent aRegistroRecarga = new Intent(InformacionVehiculo.this,Activity_registro_recargas.class);
						startActivity(aRegistroRecarga);
					}
				} );
				selecRegistro.show();
				
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_informacion_vehiculo, menu);
		return true;
	}

}
